FROM maven:3.9.4-jdk-17-alpine as builder

# Copy local code to the container image.
WORKDIR /app
COPY pom.xml .
COPY src ./src
ENV TZ=Asia/Shanghai
EXPOSE 8088
# Build a release artifact.
RUN mvn package -DskipTests

# Run the web service on container startup.
CMD ["java","-jar","/app/target/userCenter-0.0.1-SNAPSHOT.jar","--spring.profiles.active=prod"]
